package cn.itcast.bos.service.base;

import cn.itcast.bos.domain.base.Courier;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import java.util.List;

public interface CourierService {
    void save(Courier courier);

    Page<Courier> findPageData(Specification<Courier> specification, Pageable pageable);

    //作废的快递员
    void markDeleted(Integer[] ids);

    /**
     * 找到没有关联定区的快递员
     *
     * @return
     */
    List<Courier> findNoAssociation();
}
